package com.jdzy.student.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jdzy.model.student.pojos.Plan;
import com.jdzy.model.student.pojos.PlanType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface PlanMapper extends BaseMapper<Plan> {
    List<Plan> findPlansByStudentIdAndTypeAndTime(@Param("stuId")String stuId, @Param("planType")PlanType planType, Date startTime, Date endTime);

    List<Plan> selectAll();
}
